#include "sureclear.h"
#include "ui_sureclear.h"

SureClear::SureClear(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::SureClear)
{
    ui->setupUi(this);
    this->initScene(); //初始化窗口
}

SureClear::~SureClear()
{
    delete ui;
}

//初始化窗口
void SureClear::initScene()
{
    setWindowTitle(GAME_NAME); //设置窗口标题
//    setWindowIcon(QIcon(GAME_ICON_)); //设置窗口图标
    //this->initQLabel(); //初始化标签
}

void SureClear::recShowSureClear()
{
    this->show();
}

void SureClear::on_yes_clicked()
{
    emit sendYesClear();
    this->hide();
}

void SureClear::on_no_clicked()
{
    emit sendNoClear();
    this->hide();
}
